package com.ruicheng.iam.dao;

import com.ruicheng.iam.dto.ProjectSearchDTO;
import com.ruicheng.iam.entity.ProjectInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectInfoDao {
    int deleteByPrimaryKey(Long id);

    int insert(ProjectInfo record);

    int insertSelective(ProjectInfo record);

    ProjectInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProjectInfo record);

    int updateByPrimaryKey(ProjectInfo record);

    /**
     * 通过 appCode 查询项目信息
     * @param appCode appCode
     * @return java.util.List
     */
    List<ProjectInfo> listByAppCode(String appCode);

    /**
     * 项目列表/搜索项目
     * @param dto 搜索实体
     * @return java.util.List
     */
    List<ProjectInfo> searchProject(ProjectSearchDTO dto);
}